<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加文章</title>
    
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <!-- jquery -->
    <script src="public/js/jquery-2.0.3.min.js"></script>
    <!-- Bootstrap -->
    <link   href="public/css/bootstrap.min.css" rel="stylesheet">
    <script src="public/js/bootstrap.min.js"></script>

  </head>
  
  <body>
    <form method="post" action="addArticle">
    	<table>
    		<tr>
    			<td>标题：</td>
    			<td><input type="text" name="article.title"></td>
    		</tr>
    		<tr>
    			<td>内容：</td>
    			<td><textarea cols="50" rows="3" name="article.content"></textarea></td>
    		</tr>
    		<tr>
    			<td colspan="2" style="text-align: right;"><input type="submit" value="发布"></td>
    		</tr>
    	</table>
    </form>
  </body>
</html>
